<?php
namespace Home\Controller;
use Think\Controller;

class IndexController extends Controller {
    public function index(){
    	//实例化对象
  //   	$sell=M('seller');
  //   	$buy=M('buyer');
    
		// $this->selllist=$sell->where("isfinish=0")->order('isfinish desc,sellerid desc')->limit(5)->select(); //desc降序 asc升序

		// $this->buylist=$buy->where("isfinish=0")->order('isfinish desc,buyerid desc')->limit(5)->select(); //desc降序 asc升序

	
		
		$this->display();
	


    }

 
   public function logout(){
       session('[destroy]'); // 销毁session
        session('tel',null);
        session('username',null);
        $this->success('注销成功','../index/index');
    }




}